package view.GUI.adminView.coreData.people.staff;

import view.GUI.adminView.coreData.people.AbstractPeopleView;
import view.GUI.mainView.MainView;
import enums.GUIText;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;

public abstract class StaffView extends AbstractPeopleView {

	private Label lblNick;
	private Label lblPW;
	private Label lblValidatePW;
	protected Label lblShowNick;


	protected PasswordField txtPW;
	protected PasswordField txtValidatePW;

	public StaffView(boolean isEdit, GUIText title, MainView instance) {
		super(isEdit, 5, instance, title);
		createWidgets();
		addWidgets();
	}
	
	private void addWidgets(){

		super.addNode(lblNick, 0, 1);
		super.addNode(lblShowNick, 1, 1);
		super.addNode(lblPW, 0, 2);
		super.addNode(txtPW, 1, 2);
		super.addNode(lblValidatePW, 0, 3);
		super.addNode(txtValidatePW, 1, 3);
	}

	private void createWidgets() {


		lblNick = new Label(GUIText.NICKNAME.toString());
		lblPW = new Label(GUIText.PASSWORD.toString());
		lblValidatePW = new Label(GUIText.VALIDATENEWPW.toString());
		lblShowNick = new Label();

		txtPW = new PasswordField();
		txtValidatePW = new PasswordField();


	}
}
